#include "dlglogin.h"
#include "ui_dlglogin.h"

DlgLogin::DlgLogin(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::DlgLogin)
{
    ui->setupUi(this);
    this->setModal(true);
}

DlgLogin::~DlgLogin()
{
    delete ui;
}

void DlgLogin::on_pushButton_login_clicked()
{
    QString m_strIP = ui->lineEdit_ip->text();
    QString m_strName = ui->lineEdit_name->text();
    QString m_strPwd = ui->lineEdit_pwd->text();

    emit sig_loginInfo(m_strIP,m_strName,m_strPwd);
}

void DlgLogin::on_pushButton_cancel_clicked()
{
    this->hide();
}
